package org.example.sort;

import java.util.Random;

public abstract class AbstractSort {

    public abstract void sort(int[] datas);


    public int[] getDatas(int length){
        int[] datas = new int[length];
        Random random = new Random(length);
        for (int i = 0; i < length; i++){
            datas[i] =random.nextInt();
        }
        return datas;
    }

    public boolean compare(int a, int b){
        return a > b;
    }

}
